]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
mediaMessage: Don't try to raise player while locked
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 15 Feb 2018 13:14:07 +0000 (14:14 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 8 Aug 2025 21:42:17 +0000 (21:42 +0000)
We don't allow windows on the lock screen, so don't raise a
player window while locked, as the result of the action would
only become visible on unlock.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3306>

js/ui/messageList.js

index 169168c3aef64a8513c6f32efbc2ec05e96ccd36..0dda98cdf540ff121239ec1fb295f8d504dd8888 100644 (file)
@@ -798,6 +798,9 @@ class MediaMessage extends Message {
     }
 
     vfunc_clicked() {
+        if (Main.sessionMode.isLocked)
+            return;
+
         this._player.raise();
         Main.panel.closeCalendar();
     }